package cn.mhome.merchant.dao.common;

public class SqlBuffer{

	private StringBuilder builder = null;
	public SqlBuffer(){
		builder = new StringBuilder();
	}
	public SqlBuffer(String str){
		builder = new StringBuilder(str);
	}
	
	public SqlBuffer append(String str){
		builder.append(str);
		return this;
	}
	
	public SqlBuffer orderby(String str){
		builder.append(" ORDER BY " + str);
		return this;
	}
	
	@Override
	public String toString() {
		return builder.toString();
	}
}
